package main

import (
	"fmt"
	_ "unsafe" //下划线是忽略该包
)

func main() {

	var n1 int32 = 12
	var n2 int8
	//var n3 int8

	n2 = int8(n1) + 127 //溢出
	//n3 = int8(n1) + 128 //Invalid operation: int8(n1) + 128 (cannot convert constant 128 to type int8)

	fmt.Println("n2=", n2)

}
